<template>
  <h2>provide-setup属性</h2>
  <Child />
</template>

<script setup>
import Child from "./16-child2.vue";
import { provide, ref, onMounted } from "vue";

const count = ref(5);
provide("count", count);

onMounted(() => {
  setTimeout(() => {
    count.value++;
  }, 2000);
});
</script>
